<template>
    <div style="width: 100%;height: 100%;padding: 10px;">
        <a href="http://localhost:10086/#/dataAnalyse" target="_blank" >打开一个新的窗口1</a>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <a href="http://localhost:10090/wj/#/case/case-accept" target="_blank" >打开一个新的窗口2</a>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <span @click="goasd">打开嵌入页面</span>
        <div @click="gooutweb">打开外层浏览器</div>
        <div @click="changeOther">改变颜色</div>
        <div @click="sendData">传值</div>
    </div>
</template>

<script>
export default {
    name: 'chatMessage',
    props: {},
    components: {},
    data () {
        return {}
    },
    computed: {},
    watch: {},
    methods: {
        sendData(){
            window.myIpcRenderer.send('sendData', '/webview','传值的测试');
        },
        changeOther(){
            this.$store.commit('app/SET_THEME', 1);
        },
        gooutweb(){
            window.myIpcRenderer.send('window-new',{
                title: '其他窗口',
                route: '/webview',
                width: 750,
                height: 500,
                backgroundColor: '#ffffff',
                resizable: true,
                modal: true,
                maximize: false,
            });
        },
        goasd () {
            this.$router.push({ path: '/iframePage' })
        }
    },
    beforeCreate () {
    },
    created () {
    },
    beforeMount () {
    },
    mounted () {
    },
    beforeUpdate () {
    },
    updated () {
    },
    activated () {
    },
    deactivated () {
    },
    beforeDestroy () {
    },
    destroyed () {
    }
}
</script> 
<style scoped lang='less'>

</style>
